<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Categorias</title>
    </h:head>
    <h:body>
        <h1>Cassio baitola</h1>
        <h:form>
            <p:inputText></p:inputText>
            <p:commandButton value="Buscar" actionListener="#{categoriaMB.buscar}" ajax="false" />
            <p:commandButton value="Novo" action="categoria-form.xhtml" ajax="false" />
            
            <p:dataTable value="#{categoriaMB.categorias}" var="categoria" style="width: 600px">
                <p:column headerText="Categoria">
                    <h:outputText value="#{categoria.nome}" />
                </p:column>
               <p:column headerText="Estado">
                    <h:outputText value="#{categoria.estado}" />
                </p:column>
            </p:dataTable>
        </h:form>
    </h:body>
</html>

